{% extends 'base.html'%}
{% block title %}注册{%endblock%}
{%block content%}
<form action="/accounts/register/" class="ui-widget" method="post">{% csrf_token %}
    {% for field in form %}
        <div style="block" class="fieldWrapper">
            {{ field.label_tag }}: {{ field }} {{ field.errors }}
        </div>
    {% endfor %}
    <p><input type="submit" value="Send message" /></p>
</form>
{%endblock%}